﻿using MediatR;
using RBAC.Api.Erroc;
using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Writh.Command.Roles
{
    public class UpdateRoleCommand:IRequest<APIResult<object>>
    {
        public int Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(100)]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        [StringLength(300)]
        public string? Description { get; set; }
        /// <summary>
        /// 权限id
        /// </summary>
        public List<int> PermissionId { get; set; }
    }
}
